package group.teachingmanagerbk.controller;

import group.teachingmanagerbk.service.ScoreService;
import group.teachingmanagerbk.utils.ReturnResult.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/scores")
public class ScoreController {

    @Autowired
    private ScoreService scoreService;

    // 获取单个学生各科成绩
    @GetMapping("/student/{id}")
    public Result queryStudentScores(@PathVariable Integer id) {
        Object data = scoreService.queryStudentScores(id);
        return new Result().success(data);
    }

    // 生成学生学习情况报表

}
